import React from "react";
import { useState } from "react";
import B from "./B";
export let Context = React.createContext()
export default function A() {
  //声明状态
  let [count, setCount] = useState(101);
  return (
    <div>
      <div>A</div>
      <Context.Provider value={[count,setCount]} >
      <B />
      </Context.Provider>
    </div>
  );
}
